package com.baoming.web.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;

import com.baoming.util.PageModel;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public abstract class BaseAction extends ActionSupport implements ServletRequestAware,ServletResponseAware {

	public static final String LOGIN = "login" ; 
	public static final String ERROR = "error" ;
	
	protected HttpServletRequest request = null ; 
	protected HttpServletResponse response = null ;  
	  
	private PageModel pager = new PageModel() ; 
	
	public PageModel getPager() {
		
		return pager;
	}

	public void setPager(PageModel pager) {
		this.pager = pager;
	}

	public void setServletRequest(HttpServletRequest request) {
		this.request = request ; 
	}

	public void setServletResponse(HttpServletResponse response) {
		this.response = response ; 
	}
	
	public abstract String manager() ; 
	public abstract String edit() ; 
	public abstract String remove() ; 
	public abstract String add() ; 
	public abstract String removeGroup() ;  

}
